package com.streamkar.entity.es;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.List;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class HitsEntity implements Serializable {

    @JsonProperty("total")
    private long total;
    @JsonProperty("max_score")
    private double maxScore;
    @JsonProperty("hits")
    private List<HitEntity> hits;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public double getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(double maxScore) {
        this.maxScore = maxScore;
    }

    public List<HitEntity> getHits() {
        return hits;
    }

    public void setHits(List<HitEntity> hits) {
        this.hits = hits;
    }
}
